package link.anycar.study.jfinal.basic;

import com.jfinal.config.*;
import com.jfinal.server.undertow.UndertowServer;
import com.jfinal.template.Engine;
import link.anycar.study.jfinal.basic.controller.HelloController;

public class DemoApp extends JFinalConfig {

    public static void main(String[] args) {
        UndertowServer.start(DemoApp.class, 8080, true);
    }

    public void configConstant(Constants constants) {
        constants.setDevMode(true);
    }

    public void configRoute(Routes routes) {
        routes.add("/hello", HelloController.class);
    }

    public void configEngine(Engine engine) {
    }

    public void configPlugin(Plugins plugins) {
    }

    public void configInterceptor(Interceptors interceptors) {
    }

    public void configHandler(Handlers handlers) {
    }
}
